tools/libxl: Infrastructure to convert a legacy stream
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 8 Sep 2014 14:24:59 +0000 (15:24 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 15 Jul 2015 10:22:53 +0000 (11:22 +0100)
commit4b405e6cff3c3fa7e3f5518f47b7477378b4410c
treefab38e68f923d7f9181be9d2a98bff6cd38d3a6c
parentbf4c9d2d0c3fc4fbbf5240e19d21a78f2d0afe37
tools/libxl: Infrastructure to convert a legacy stream

Provide a thin wrapper around exec()ing the python conversion utility,
and a stub implementation for cases where conversion is not wanted
(i.e. not x86).

One complication is that the caller of this interface needs to assume
ownership of the output fd, to prevent it being closed while still in
use in a datacopier.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v4: Formatting tweaks, description of the width field.
v3: Trimmed down massively from v2, provide libxl_no_convert_callout.c
tools/libxl/Makefile
tools/libxl/libxl_convert_callout.c [new file with mode: 0644]
tools/libxl/libxl_internal.h
tools/libxl/libxl_no_convert_callout.c [new file with mode: 0644]